function HttpGet(url,onSucess,onError)
	local http=Alice.Http.New()
	http:AsyncGet(url,function(data)
		if tostring(data)=="null" then
			if onError then onError(1000) end
		else
			if onSucess then onSucess(data) end
		end
		http:Release()
		http=nil
 	end,function(err) 
		if onError then 
			onError(err) 
		end 
		http:Release()
		http=nil
	end)
end
HttpGet("http://www.baidu.com",function(data) print(data) end,function(err) print("error",err) end)